//******************************************************************************
//  _____                  _    _             __
// |  _  |                | |  | |           / _|
// | | | |_ __   ___ _ __ | |  | | __ _ _ __| |_ __ _ _ __ ___
// | | | | '_ \ / _ \ '_ \| |/\| |/ _` | '__|  _/ _` | '__/ _ \
// \ \_/ / |_) |  __/ | | \  /\  / (_| | |  | || (_| | | |  __/
//  \___/| .__/ \___|_| |_|\/  \/ \__,_|_|  |_| \__,_|_|  \___|
//       | |               We don't make the game you play.
//       |_|                 We make the game you play BETTER.
//
//            Website: http://openwarfaremod.com/
//******************************************************************************
// OTHER OPTIONS
// ALL VARIABLES WORK IN RANKED AND UNRANKED MODES
//******************************************************************************
// PLEASE REMEMBER TO UNCOMMENT THE LINES BY REMOVING THE DOUBLE SLASHES (//)
// WHEN CHANGING A VALUE. PLEASE DO NOT UNCOMMENT LINES SET TO DEFAULT VALUES.
//******************************************************************************

#include openwarfare\_utils;

init() {
printDebugLine( "configs\gameplay\others::init()" );
//******************************************************************************
// SPAWN PROTECTION
//******************************************************************************
// Enable spawn protection
// 0 = Disabled (default), 1 = Enabled
setModDVar("scr_enable_spawn_protection", "1");

// Control whether the player will remain invible during the spawn protection
// Weapons will be disable while the player is invisible
// 0 = Disabled (default), 1 = Enabled
setModDVar("scr_spawn_protection_invisible", "1");

// Amount of seconds to protect a player after spawn
// Allowed values: 0.5-60 (default is 4 seconds)
setModDVar("scr_spawn_protection_time", "7");

// Show a shield icon to the attacker when shooting a spawn protected player
// 0 = Disabled, 1 = Enabled (default)
// setModDVar("scr_spawn_protection_hiticon", "1");

// Max distance a player can travel while spawn protected
// 0 = Disabled (default), 1-5000 = Maximum distance
// setModDVar("scr_spawn_protection_maxdistance", "0");

// Punish players for shooting spawn protected players (players will be shock and their weapons will be disabled)
// 0 = Disabled (default), > 0-15 = Time the player will punished for
// setModDVar("scr_spawn_protection_punishment_time", "0");

// Show Spawn Protection Text
// 0 = Disabled(default), 1 = Enabled
setModDVar("scr_enable_spawn_protection_text", "1");

//******************************************************************************
// ANTI BUNNY-HOPPING AND ANTI DOLPHIN-DIVE OPTIONS
//******************************************************************************
// Controls the type of anti bunny-hopping that should be enabled
// 0 = Disabled (default)
// 1 = The player's weapon will lower every time the player jumps.
// 2 = The player's weapon will lower if the player performs a second jump within
//     one second of the last jump.
// 3 = The player's aim will shift instead of the weapons being disabled.
// 4 = The player's aim will shift if the player performs a second jump within one
//     second of the last jump. 
setModDVar("scr_enable_anti_bunny_hopping", "1");

// This variable controls if the player's view should shift when going prone and firing the weapon. 
// 0 = Disabled (default), 1 = Enabled, 2 = Shift view going prone ONLY!
setModDVar("scr_enable_anti_dolphin_dive", "2");

//******************************************************************************
// ANTI CAMPING OPTIONS
//******************************************************************************
// Controls if anti-camping should be enabled
// 0 = Disabled (default), 1 = Enabled (applies to everyone)
// 2 = Enabled (doesn't apply to snipers)
setModDVar("scr_anti_camping_enable", "2");

// Controls what kind of cue should be shown to the player to indicate camping 
// 0 = Show only icon, 1 = Show only message, 2 = Show both
setModDVar("scr_anti_camping_show", "2");

// Custom message to display to the player when camping. By default a localized string
// will be shown to the player when scr_anti_camping_show is set to 1 or 2.
// setModDVar("scr_anti_camping_message", "");

// Distance in inches a player needs to move to not be considered camping.
// Allowed values: 50-500 = Distance in inches (default is 100)
// setModDVar("scr_anti_camping_distance", "100");

// Time the player has to move the distance set in scr_anti_camping_distance
// Allowed values: 30-300 = Seconds (default is 60)
// setModDVar("scr_anti_camping_time", "60");

//******************************************************************************
// Body removal
//******************************************************************************
// Controls whether bodies should be removed from the map 
// 0 = Disabled (default), 1 = Enabled (no effect), 2 = Enabled (small explosion effect), 3 = Enabled (explosion and sound effect)
setModDVar("scr_bodyremoval_enable", "1");

// Time before removing a body in seconds. 
// Allowed values: 5-300 (default is 20).
setModDVar("scr_bodyremoval_time", "10");

//******************************************************************************
// Dog Tags
//******************************************************************************
// Dogtags shows the name of the killed player when you are near him crouching or proning
// Dog tags should only be enabled in gametype where players don't respawn like S&D, ASS, etc.
// 0 = Disabled (default), 1 = Enabled
// setModDVar("scr_dogtags_enable", "1");

//******************************************************************************
// DAMAGE EFFECTS OPTIONS
//******************************************************************************
// Controls if the player should drop the weapon when he/she takes damage
// 0 = Disabled (default)
// 1 = Player will drop the weapon when hit on his/her hands
// 2 = Player will drop the weapon when hit on his/her hands, or his/her lower arm.
// 3 = Player will drop the weapon when hit on his/her hands, his/her lower arm, or his/her upper arm.
setModDVar("scr_de_dropweapon_on_arm_hit", "1");

// Chance a player will drop the weapon when hit on the specific place
// 0-100 = Chance of dropping the weapon (default is 50)
// setModDVar("scr_de_dropweapon_chance", "100");

// Controls whether a player will fall to the ground when hit on lower leg
// 0 = Disabled (default), 1 = Enabled (no speed reduction), 2 = Enabled (also speed reduction)
setModDVar("scr_de_falldown_on_leg_hit", "1");

// Chance a player will fall to the ground when hit on his/her legs
// 0-100 = Chance of falling to the ground (default is 50)
// setModDVar("scr_de_falldown_chance", "100");

// Controls whether the player's view should shift when hit
// 0 = Disabled (default), 1-50 = Enabled (amount of damage to trigger a shift view)
// setModDVar("scr_de_shiftview_on_damage", "5");

// Controls whether the player will break his ankle on a fall causing a 65% lost of the speed
// 0 = Disabled (default), 1-75 = Enabled (amount of damage to trigger the break of the ankle)
// setModDVar("scr_de_break_ankle_on_fall", "35");

// Controls whether the player will lose a 50% of speed when hit on the upper leg
// 0 = Disabled (default), 1-75 = Enabled (amount of damage to trigger the loss of speed)
// setModDVar("scr_de_slowdown_on_leg_hit", "35");


}